package com.sayimo.maker.user.dao.impl;

import java.util.Map;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.user.dao.EnterpriseWalletIncomeExpendRecordInterfaceDao;
import com.sayimo.maker.user.vo.EnterpriseWalletIncomeExpendRecord;
import com.sayimo.maker.user.vo.WalletIncomeExpendRecord;

/**
 * @Title: WalletIncomeExpendRecordInterfaceImplDao.java
 * @Package com.sayimo.maker.user.dao.impl
 * @Description: TODO(用一句话描述该文件做什么)
 * @author 田超
 * @date 2017年2月10日 下午5:08:37
 * @version V1.0
 */
@Repository("enterpriseWalletIncomeExpendRecordInterfaceDao")
public class EnterpriseWalletIncomeExpendRecordInterfaceImplDao
		extends AbstractMybatisBaseDao<EnterpriseWalletIncomeExpendRecord>
		implements EnterpriseWalletIncomeExpendRecordInterfaceDao {

	public int insertSelective(EnterpriseWalletIncomeExpendRecord expendRecord) throws DaoException {
		return this.mybatisInterfaceBaseDao.insert(
				"com.sayimo.maker.user.dao.EnterpriseWalletIncomeExpendRecordInterfaceDao.insertSelective",
				expendRecord);
	}

	public int updateWalletIncomeExpend(EnterpriseWalletIncomeExpendRecord expendRecord) throws DaoException {
		return this.mybatisInterfaceBaseDao.update(
				"com.sayimo.maker.user.dao.EnterpriseWalletIncomeExpendRecordInterfaceDao.updateWalletIncomeExpend",
				expendRecord);
	}

	/**
	 * @Package com.sayimo.maker.user.dao.impl
	 * @Author 谭新
	 * @MethodName: getWalletIncomeExpend
	 * @Description:获取交易记录
	 * @Date 2017年4月12日,下午2:37:22
	 */
	@Override
	public EnterpriseWalletIncomeExpendRecord getWalletIncomeExpend(Map<String, Object> paramMap) throws DaoException {
		return (EnterpriseWalletIncomeExpendRecord) this.mybatisInterfaceBaseDao.getObject(
				"com.sayimo.maker.user.dao.EnterpriseWalletIncomeExpendRecordInterfaceDao.getWalletIncomeExpend",
				paramMap);
	}

	public EnterpriseWalletIncomeExpendRecord getWalletIncomeExpendByEmsNo(String emsNo) throws DaoException {
		return this.mybatisInterfaceBaseDao.get(
				"com.sayimo.maker.user.dao.EnterpriseWalletIncomeExpendRecordInterfaceDao.getWalletIncomeExpendByEmsNo",
				emsNo);
	}

	@Override
	public List queryWalletInOutByCond(Map<String, Object> paramMap) throws DaoException {
		return this.mybatisInterfaceBaseDao.queryObject("com.sayimo.maker.user.dao.EnterpriseWalletIncomeExpendRecordInterfaceDao.queryWalletInOutByCond", paramMap);
	}

}
